package com.example.common.core.constants;

public class CacheConstants {
    //敏感信息
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";
    //默认的过期时间
    public final static long LOGIN_TOKEN_KEY_EXP = 720;
    //刷新过期时间的临界值
    public static final long REFRESH_TIME = 3;

    //验证码的key
    public static final String PHONE_TOKEN_KEY = "p:c:";
    //用户每天获取验证码的次数
    public static final String CODE_TIME_KEY = "t:c:";

    public static final String EXAM_UNFINISHED_LIST = "e:t:l";//redis未完成竞赛

    public static final String EXAM_HISTORY_LIST = "e:h:l";//redis历史竞赛列表

    public static final String EXAM_DETAIL = "e:d:";//redis竞赛详细信息

    public final static String USER_EXAM_LIST = "u:e:l:";   //用户个人竞赛列表

    public static final String USER_DETAIL = "u:d";//redis用户详细信息

    public static final long USER_EXP = 10;
    public static final String USER_UPLOAD_TIMES_KEY = "u:u:t";
    public static final String QUESTION_LIST = "q:l";

    public static final String QUESTION_HOST_LIST = "q:h:l";

    public static final String EXAM_QUESTION_LIST = "e:q:l:";

    public static final String USER_MESSAGE_LIST = "u:m:l:";

    public static final String MESSAGE_DETAIL = "m:d:";

    public static final String EXAM_RANK_LIST = "e:r:l:";

    public static final long DEFAULT_START = 0;

    public static final long DEFAULT_END = -1;
}
